package com.huayue.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huayue.dao.BaseDao;
import com.huayue.dao.RoomStatusDao;
import com.huayue.entity.RoomStatus;

/**
 * 房态
 */
@Service
public class RoomStatusService extends BaseService<RoomStatus> {

    @Autowired
    RoomStatusDao dao;

    @Override
    public BaseDao<RoomStatus> getDao() {
        return dao;
    }

    public List<Map<String, Object>> findRoom(Object... obj) {
        return dao.findRoom();
    }

    public List<Map<String, Object>> findAllRoomStatusType(String checkDate) {
        return dao.findAllRoomStatusType(checkDate);
    }

    public List<Map<String, Object>> findAllRoomStatus(String checkDate) {
        return dao.findAllRoomStatus(checkDate);
    }

    public int updateCustomerByNewTime() {
        return dao.updateCustomerByNewTime();
    }

    public List<Map<String, Object>> findStatus2NoCustomer() {
        return dao.findStatusCheckIn();
    }

    public int updateCustomerByRoomId(String roomId) {
        return dao.updateCustomerByRoomId(roomId);
    }

    public Map<String, Object> findStatusByRoomId(String roomId) {
        return dao.findStatusByRoomId(roomId);
    }

    public List<Map<String, Object>> findAllStatusTypeInfo() {
        return dao.findAllStatusTypeInfo();
    }

    public int updateQuitRoom() {
        return dao.updateQuitRoomAUTO();
    }

    public int updateForceQuitAUTO() {
        return dao.updateForceQuitAUTO();
    }
}
